{if $guide['show']}
<div class="pin">
	<div class="tagbox">
		{if $guide['hottags']||$guide['subcats']}
		{if $guide['subcats']}
		{loop $guide['subcats'] $subcat}
		<h4 class="meta-head"><a {if $subcategory_id==$subcat['category_id']}class="selected"{/if} href="{url pin/index?name=$subcat['category_name_en']}">$subcat['category_name_cn']</a></h4>
		<div class="tags">
			<ul> 
			{if $subcat['tags']}
				{loop $subcat['tags'] $t}
				<li {if $tag==$t&&$subcategory_id==$subcat['category_id']}class="selected"{/if}>
					<a href="{durl 'pin/index?name='.$subcat['category_name_en'].'&tag='.pzxencode($t)}">$t</a>
				</li>
				{/loop}
			{else}
				<li>
					<a href="#">{lang notag}</a>
				</li>
			{/if}
			</ul>
		</div>
		{/loop}
		{/if}
		<h4 class="meta-head">{lang selftags}</h4>
		<div class="tags">
			<ul>
			{loop $guide['hottags'] $t}
			<li {if $tag==$t}class="selected"{/if}>
				{if $category_id}
				<a href="{durl 'pin/index?name='.$category_name_en.'&tag='.pzxencode($t)}">$t</a>
				{else}
				<a href="{durl 'pin/index?tag='.pzxencode($t)}">$t</a>
				{/if}
			</li>
			{/loop}
			</ul>
		</div>
		{else}
		<h4 class="meta-head"><a href="javascript:;">{lang all_category}</a></h4>
		<div class="tags">
			<ul>
			{loop $rootCategories $category}
			<li><a href="{url pin/index?name=$category['category_name_en']}">$category['category_name_cn']</a></li>
			{/loop}
			</ul>
		</div>
		{/if}
		<h4 class="meta-head"><a href="javascript:;">{lang fast_index}</a></h4>
		<div class="tags">
			<ul>
			{if $category_id}
				<li {if $method=='lastest'}class="selected"{/if}><a href="{url pin/lastest?cat=$category_id}">{lang lastest_pin}</a></li>
                <li {if $method=='hot'}class="selected"{/if}><a href="{url pin/hot?cat=$category_id}">{lang hotest_pin}</a></li>
                <li {if $method=='share'}class="selected"{/if}><a href="{url pin/share?cat=$category_id}">{lang home_share}</a></li>
				<li {if $method=='video'}class="selected"{/if}><a href="{url pin/video?cat=$category_id}">{lang video}</a></li>
				<li {if $method=='article'}class="selected"{/if}><a href="{url pin/article?cat=$category_id}">{lang article}</a></li>
                <!--<li {if $method=='goods'}class="selected"{/if}><a href="{url pin/goods?cat=$category_id}">Shopping</a></li>-->
            {else}
				<li {if $method=='lastest'}class="selected"{/if}><a href="{url pin/lastest}">{lang lastest_pin}</a></li>
                <li {if $method=='hot'}class="selected"{/if}><a href="{url pin/hot}">{lang hotest_pin}</a></li>
                <li {if $method=='share'}class="selected"{/if}><a href="{url pin/share}">{lang home_share}</a></li>
				<li {if $method=='video'}class="selected"{/if}><a href="{url pin/video}">{lang video}</a></li>
				<li {if $method=='article'}class="selected"{/if}><a href="{url pin/article}">{lang article}</a></li>
                <!--<li {if $method=='goods'}class="selected"{/if}><a href="{url pin/goods}">Shopping</a></li>-->
            {/if}
			</ul>
		</div>
	</div>
</div>
{/if}